<style xmlns="http://www.w3.org/1999/html">
    * {
        margin: 0;
        padding: 0;
    }

</style>
<section style="border-bottom: 1px solid #e5e5e5    ">
    <h1 style="display:inline-block;margin-left: 30px;">轮播图管理</h1>
    <span>
        <button id="banner_add_btn" class="btn btn-primary" style="float: right;margin-top: 10px;margin-right: 20px">新增轮播图</button>
    </span>
    </br>
</section>

<!-------------------- 主体展示 --------------------->
<section class="content">
    <div class="role_content">
        <table class="table_list" id="table_my_toast"></table>
        <!-- 分页框 -->
        <div class="page_control" id="paging_my_toast"><ul></ul></div>
    </div>
</section>


<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    新增轮播图
                </h4>
            </div>

            <!--------------新增轮播图---------------->
            <div class="modal-body">
                <div class="row" style="margin-top: 15px;padding-left:30px;">
                    <div class="col-md-2" style="float: left;position: relative;padding-top: 6px;text-align: right">
                        <span>轮播图:</span>
                    </div>
                    <div class="col-md-9" style="padding-left: 5px">
                        <div id="picList">
                            <img src="/images/addimg.png" class="addimage" style="height: 200px;width: 200px;border: 1px solid #e5e5e5" onclick="start()" id="upimgs" alt="轮播图">
                        </div>
                        <input style='display: none;' type="file" name="files[]" id='fileupload'>
                    </div>
                </div>
            </div>


            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="banner_add">
                    新增
                </button>
                <button type="button" class="btn btn-default"
                        data-dismiss="modal">关闭
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<script>
    function start(){
        $('#fileupload').click();
    }
</script>